#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr[10];
	int max;
	int i = 0;
	max = arr[0];
	for (int i = 0; i <= 9; i++)
	{
		scanf("%d", &arr[i]);
		if (arr[i] > max)
		{
			max = arr[i];
		}
	}
	printf("%d", max);

	return 0;
}